@include("system::admin.layouts._header")
<body>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" method="post">
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">
                <li class="layui-this">页面信息</li>
                @foreach(system_lang() as $lang)
                    <li>{{$lang}}</li>
                @endforeach
            </ul>

            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <div class="layui-form-item">
                        <label class="layui-form-label required">页面名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="page_name" class="layui-input" lay-verify="required"
                                   lay-reqtext="请输入页面名称" placeholder="请输入页面名称" value="">
                            <tip>填写页面名称。</tip>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label required">页面地址</label>
                        <div class="layui-input-block">
                            <input type="text" name="page_path" class="layui-input" lay-reqtext="请输入页面地址"
                                   placeholder="请输入页面地址" value="">
                            <tip>填写页面地址(about/us)。</tip>
                        </div>
                    </div>


                    <div class="layui-form-item">
                        <label class="layui-form-label">页面标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="page_title" class="layui-input" placeholder="请输入页面标题"
                                   value="">
                            <tip>填写页面标题。</tip>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">页面关键词</label>
                        <div class="layui-input-block">
                            <input type="text" name="page_keyword" class="layui-input" placeholder="请输入页面关键词"
                                   value="">
                            <tip>填写页面关键词。</tip>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">页面模板</label>
                        <div class="layui-input-block">
                            <input type="text" name="page_template" class="layui-input" placeholder="请输入页面模板"
                                   value="">
                            <tip>填写页面模板。</tip>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">跳转链接</label>
                        <div class="layui-input-block">
                            <input type="text" name="redirect_url" class="layui-input"
                                   placeholder="请输入跳转链接" value="">
                            <tip>填写跳转链接。</tip>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">页面描述</label>
                        <div class="layui-input-block">
                            <textarea name="page_desc" class="layui-textarea"></textarea>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label required">内容</label>
                        <div class="layui-input-block">
                        <textarea id="page_content" name="page_content" rows="20" class="layui-textarea editor"
                                  placeholder="请输入内容"></textarea>
                        </div>
                    </div>
                </div>
                @foreach(system_lang() as $abb => $lang)
                    <div class="layui-tab-item">
                        <div class="layui-form-item">
                            <label class="layui-form-label required">页面名称</label>
                            <div class="layui-input-block">
                                <input type="text" name="lang[{{$abb}}][page_name]" class="layui-input" lay-verify="required"
                                       lay-reqtext="请输入页面名称" placeholder="请输入页面名称" value="">
                                <tip>填写页面名称。</tip>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">页面标题</label>
                            <div class="layui-input-block">
                                <input type="text" name="lang[{{$abb}}][page_title]" class="layui-input" placeholder="请输入页面标题"
                                       value="">
                                <tip>填写页面标题。</tip>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">页面关键词</label>
                            <div class="layui-input-block">
                                <input type="text" name="lang[{{$abb}}][page_keyword]" class="layui-input" placeholder="请输入页面关键词"
                                       value="">
                                <tip>填写页面关键词。</tip>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">页面描述</label>
                            <div class="layui-input-block">
                                <textarea name="lang[{{$abb}}][page_desc]" class="layui-textarea"></textarea>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label required">内容</label>
                            <div class="layui-input-block">
                        <textarea id="lang[{{$abb}}][page_content]" name="lang[{{$abb}}][page_content]" rows="20" class="layui-textarea editor"
                                  placeholder="请输入内容"></textarea>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
</body>
</html>
